import config from '../../utils/config';

export default function definitionAPI(api) {
  return {
    //查询所有数据
    saerchAll: (query) => api.post(`${config.interfaces.type5}portfolio-server/SecurityPool/findAll`, query),

    //删除数据
    deleteData: (query) => api.get(`${config.interfaces.type5}portfolio-server/SecurityPool/deleteSecurityPoolById`, query),

    //修改数据
    editData: (query) => api.post(`${config.interfaces.type5}portfolio-server/SecurityPool/editSecurityPoolById`, query),

    //新增
    addData: (query) => api.post(`${config.interfaces.type5}portfolio-server/SecurityPool/addSecurityPool`, query),

    //获取部门树形下拉
    getTree: (query) => api.get(`${config.interfaces.type5}portfolio-server/institution/getTree`, query),
  };
}
